type html/template.context
102 uses
html/template (current package)
context.go#L19: type context struct {
context.go#L35: func (c context) String() string {
context.go#L44: func (c context) eq(d context) bool {
context.go#L56: func (c context) mangle(templateName string) string {
escape.go#L25: c, _ := tmpl.esc.escapeTree(context{}, node, name, 0)
escape.go#L92: output map[string]context
escape.go#L111: breaks []context // context at each break action
escape.go#L112: continues []context // context at each continue action
escape.go#L119: map[string]context{},
escape.go#L137: func (e *escaper) escape(c context, n parse.Node) context {
escape.go#L144: return context{state: stateDead}
escape.go#L150: return context{state: stateDead}
escape.go#L170: func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
escape.go#L193: return context{
escape.go#L219: return context{
escape.go#L439: func nudge(c context) context {
escape.go#L457: func join(a, b context, node parse.Node, nodeName string) context {
escape.go#L501: return context{
escape.go#L508: func (e *escaper) escapeBranch(c context, n *parse.BranchNode, nodeName string) context {
escape.go#L547: func joinRange(c0 context, rc *rangeContext) context {
escape.go#L571: func (e *escaper) escapeList(c context, n *parse.ListNode) context {
escape.go#L588: func (e *escaper) escapeListConditionally(c context, n *parse.ListNode, filter func(*escaper, context) bool) (context, bool) {
escape.go#L614: func (e *escaper) escapeTemplate(c context, n *parse.TemplateNode) context {
escape.go#L624: func (e *escaper) escapeTree(c context, node parse.Node, name string, line int) (context, string) {
escape.go#L638: return context{
escape.go#L643: return context{
escape.go#L664: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L675: return context{
escape.go#L686: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L687: filter := func(e1 *escaper, c1 context) bool {
escape.go#L745: func (e *escaper) escapeText(c context, n *parse.TextNode) context {
escape.go#L822: func contextAfterText(c context, s []byte) (context, int) {
escape.go#L849: return context{
escape.go#L880: return context{state: stateTag, element: element}, i
html.go#L183: s, c, i, allText := []byte(html), context{}, 0, true
html.go#L221: c, i = context{state: stateTag, element: c.element}, i1
transition.go#L16: var transitionFunc = [...]func(context, []byte) (context, int){
transition.go#L51: func tText(c context, s []byte) (context, int) {
transition.go#L58: return context{state: stateHTMLCmt}, i + 4
transition.go#L74: return context{state: stateTag, element: e}, j
transition.go#L89: func tTag(c context, s []byte) (context, int) {
transition.go#L96: return context{
transition.go#L103: return context{state: stateError, err: err}, len(s)
transition.go#L107: return context{
transition.go#L134: return context{state: state, element: c.element, attr: attr}, j
transition.go#L138: func tAttrName(c context, s []byte) (context, int) {
transition.go#L141: return context{state: stateError, err: err}, len(s)
transition.go#L149: func tAfterName(c context, s []byte) (context, int) {
transition.go#L174: func tBeforeValue(c context, s []byte) (context, int) {
transition.go#L192: func tHTMLCmt(c context, s []byte) (context, int) {
transition.go#L194: return context{}, i + 3
transition.go#L215: func tSpecialTagEnd(c context, s []byte) (context, int) {
transition.go#L223: return context{}, i
transition.go#L255: func tAttr(c context, s []byte) (context, int) {
transition.go#L260: func tURL(c context, s []byte) (context, int) {
transition.go#L272: func tJS(c context, s []byte) (context, int) {
transition.go#L298: return context{
transition.go#L350: func tJSTmpl(c context, s []byte) (context, int) {
transition.go#L361: return context{
transition.go#L385: func tJSDelimited(c context, s []byte) (context, int) {
transition.go#L404: return context{
transition.go#L436: return context{
transition.go#L448: func tBlockCmt(c context, s []byte) (context, int) {
transition.go#L465: func tLineCmt(c context, s []byte) (context, int) {
transition.go#L498: func tCSS(c context, s []byte) (context, int) {
transition.go#L571: func tCSSStr(c context, s []byte) (context, int) {
transition.go#L596: return context{
transition.go#L611: func tError(c context, s []byte) (context, int) {